﻿@{
    ViewBag.Title = "Show all user";
}

<h2>@ViewBag.Title.</h2>
<p>
    Show All Users Information:
    
    <table>
        <tr>
            <th style="padding:10px">user name</th>
            <th style="padding:10px">display name</th>
            <th style="padding:10px">role</th>
            <th style="padding:10px">balance</th>
        </tr>
        @{
            foreach (var user in ViewBag.AllUserInfo)
            {
            <tr>
                <td style="padding:10px">@user.UserName</td>
                <td style="padding:10px">@user.DisplayName</td>
                <td style="padding:10px">@user.UserRole</td>
                <td style="padding:10px">@user.UserBalance</td>
            </tr>
            }
        }

    </table>
</p>

<aside>
    <h3>Return:</h3>
    <ul>
        <li>@Html.ActionLink("Change user balance", "ChangeUserBalance", "Home")</li>
        <li>@Html.ActionLink("Show today's orders", "ShowOrdersOfToday", "Home")</li>
        <li>@Html.ActionLink("Show all users' information", "ShowAllUser", "Home")</li>
    </ul>
</aside>


<script type="text/javascript">
</script>
